SUBDIRS	= struct comm sockapi apr redis epoll 


default clean all:
	for i in $(SUBDIRS); \
	do (echo "cd $$i; $(MAKE) $@"; cd $$i; $(MAKE) $@); done

install:
	./make dirs
	for i in $(SUBDIRS); \
	do (echo "cd $$i; $(MAKE) $@"; cd $$i; $(MAKE) $@); done

dirs:
	for i in $(ALLDIR); \
	do if [ ! -d $$i ]; \
		then set -x; mkdir -p $$i; \
			$(CHOWN) $(MTAUSER) $$i; \
		fi; \
	done
